<template>
  <div class="about-view">
    <div class="about-header">
      <h1 class="page-title">关于我们</h1>
      <p class="page-description">了解 Code Studio 的使命与愿景</p>
    </div>

    <div class="about-content">
      <a-row :gutter="[32, 32]">
        <a-col :xs="24" :lg="12">
          <div class="content-section">
            <h2 class="section-title">我们的使命</h2>
            <p class="section-text">
              Code Studio 致力于为开发者提供最优秀的编程工具和平台，
              让每一位开发者都能够高效地创建出色的软件产品。
            </p>
            <p class="section-text">
              我们相信技术的力量能够改变世界，而优秀的工具能够释放开发者的创造力。
            </p>
          </div>
        </a-col>
        <a-col :xs="24" :lg="12">
          <div class="content-section">
            <h2 class="section-title">技术栈</h2>
            <div class="tech-stack">
              <a-tag color="blue" class="tech-tag">Vue 3</a-tag>
              <a-tag color="green" class="tech-tag">TypeScript</a-tag>
              <a-tag color="purple" class="tech-tag">Ant Design Vue</a-tag>
              <a-tag color="orange" class="tech-tag">Vite</a-tag>
              <a-tag color="red" class="tech-tag">Pinia</a-tag>
              <a-tag color="cyan" class="tech-tag">Vue Router</a-tag>
            </div>
          </div>
        </a-col>
      </a-row>

      <a-divider />

      <div class="team-section">
        <h2 class="section-title">开发团队</h2>
        <a-row :gutter="[24, 24]" justify="center">
          <a-col :xs="24" :sm="12" :md="8">
            <a-card class="team-card" hoverable>
              <template #cover>
                <div class="avatar-container">
                  <a-avatar size={80} class="team-avatar">
                    🐟
                  </a-avatar>
                </div>
              </template>
              <a-card-meta 
                title="程序员鱼皮" 
                description="项目创始人 & 全栈开发工程师"
              />
              <div class="team-links">
                <a href="https://www.codefather.cn" target="_blank" class="team-link">
                  编程导航
                </a>
              </div>
            </a-card>
          </a-col>
        </a-row>
      </div>

      <a-divider />

      <div class="contact-section">
        <h2 class="section-title">联系我们</h2>
        <div class="contact-info">
          <p class="contact-item">
            <strong>官方网站：</strong>
            <a href="https://www.codefather.cn" target="_blank" class="contact-link">
              https://www.codefather.cn
            </a>
          </p>
          <p class="contact-item">
            <strong>项目地址：</strong>
            <span>Code Studio Frontend</span>
          </p>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
// 关于页面组件
</script>

<style scoped>
.about-view {
  padding: 0;
}

.about-header {
  text-align: center;
  padding: 40px 0;
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  color: white;
  margin: -24px -24px 40px;
  border-radius: 0 0 16px 16px;
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  color: white;
}

.page-description {
  font-size: 16px;
  opacity: 0.9;
  margin: 0;
}

.about-content {
  padding: 0 0 40px;
}

.content-section {
  margin-bottom: 32px;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #262626;
}

.section-text {
  font-size: 16px;
  line-height: 1.6;
  color: #595959;
  margin-bottom: 16px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 16px;
}

.team-section {
  text-align: center;
  margin: 40px 0;
}

.team-card {
  border-radius: 12px;
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.avatar-container {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.team-avatar {
  font-size: 32px;
}

.team-links {
  margin-top: 16px;
  text-align: center;
}

.team-link {
  color: #1890ff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.team-link:hover {
  color: #40a9ff;
}

.contact-section {
  background: #fafafa;
  padding: 32px;
  border-radius: 12px;
  margin-top: 32px;
}

.contact-info {
  max-width: 600px;
  margin: 0 auto;
}

.contact-item {
  font-size: 16px;
  margin-bottom: 12px;
  color: #595959;
}

.contact-link {
  color: #1890ff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-link:hover {
  color: #40a9ff;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .about-header {
    padding: 30px 20px;
    margin: -16px -16px 30px;
  }
  
  .page-title {
    font-size: 28px;
  }
  
  .section-title {
    font-size: 20px;
  }
  
  .contact-section {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .about-header {
    padding: 24px 12px;
    margin: -12px -12px 20px;
  }
  
  .page-title {
    font-size: 24px;
  }
  
  .section-title {
    font-size: 18px;
  }
  
  .contact-section {
    padding: 20px 16px;
  }
}
</style>